/**
 * Copyright 2020 OPSLI 快速开发平台 https://www.opsli.com
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package org.opsli.api.web.shop.common;

import io.swagger.annotations.ApiOperation;
import org.opsli.api.base.result.ResultWrapper;
import org.opsli.api.wrapper.shop.device.SysShopDeviceModel;
import org.opsli.api.wrapper.shop.userorder.SysUserOrderModel;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartHttpServletRequest;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Date;
import java.util.List;


/**
 * 门店设备 Api
 *
 * 对外 API 直接 暴露 @GetMapping 或者 @PostMapping
 * 对内也推荐 单机版 不需要设置 Mapping 但是调用方法得从Controller写起
 *
 * 这样写法虽然比较绕，但是当单体项目想要改造微服务架构时 时非常容易的
 *
 * @author 17607080935
 * @date 2025-01-08 17:12:50
 */
public interface SysShopCommonRestApi {

    /**
     * 根据日期获取订单列表
     * @param date
     * @param orgIds
     * @param deviceId
     * @return
     */
    List<SysUserOrderModel> getListByDate(Date date, String orgIds, String deviceId);

    /**
     * 根据ID获取设备信息
     * @param id
     * @return
     */
    SysShopDeviceModel getSysShopDeviceModelById(String id);
}